package JavaDesign.report_finish;

/**
 * @author zouran
 * createDate：2023/12/22  11:12
 */
public class Principal implements Visitor {
    @Override
    public void visit(Student student) {
        System.out.printf("学生信息 姓名： {%s} 班级：{%s}", student.name, student.clazz);

    }

    @Override
    public void visit(Teacher teacher) {
        System.out.printf("老师信息 姓名： {%s} 班级：{%s} 升学率：{%.2f}", teacher.name, teacher.clazz, teacher.entranceRatio());

    }
}
